import React from 'react';
import './App.css';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
import Home from './pages/Home/index'
import CityList from './pages/CityList/index'
import { Button } from 'antd-mobile';

function App() {
  return (
    <div className="App">
      <Button>Start</Button>
      <Router>
        {/* 配置导航菜单 */}
        <Link to="/home">首页</Link>
        <Link to="citylist">城市列表</Link>
        {/* 配置路由 */}
        <Route path="/home" component={Home}></Route>
        <Route path="/citylist" component={CityList}></Route>
      </Router>
    </div>
  );
}

export default App;
